/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 */
package com.jeesite.modules.vehicle.web;

import com.jeesite.common.config.Global;
import com.jeesite.common.web.BaseController;
import com.jeesite.modules.vehicle.entity.CarTypeApi;
import com.jeesite.modules.vehicle.service.CarTypeApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 测试数据Controller
 * @author ThinkGem
 * @version 2018-04-22
 */
@Controller
@RequestMapping(value = "${adminPath}/vehicle/")
public class CarTypeApiController extends BaseController {

	@Autowired
	private CarTypeApiService carTypeApiService;

	/**
	 * 查询车品牌列表
	 * */
	@RequestMapping(value = "findTypeList")
	@ResponseBody
	public String findTypeList(CarTypeApi carTypeApi){
		List<CarTypeApi> list = carTypeApiService.findList(carTypeApi);
		return renderResult(Global.TRUE, text("获取成功！"), list);
	}

}